package com.hr.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentVO {
    private Long id;
    private Long houseId;
    private Long userId;
    private String username;      // 来自 user 表
    private String content;
    private Long parentId;
    private LocalDateTime createTime;

    // 子评论（用于树形结构）
    private List<CommentVO> replies = new ArrayList<>();
}
